#include "myswitchbotton.h"
#include "myswitchbottonplugin.h"

#include <QtPlugin>

mySwitchBottonPlugin::mySwitchBottonPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void mySwitchBottonPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool mySwitchBottonPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *mySwitchBottonPlugin::createWidget(QWidget *parent)
{
    return new mySwitchBotton(parent);
}

QString mySwitchBottonPlugin::name() const
{
    return QLatin1String("mySwitchBotton");
}

QString mySwitchBottonPlugin::group() const
{
    return QLatin1String("myTools");
}

QIcon mySwitchBottonPlugin::icon() const
{
    return QIcon(QLatin1String(":/switch.png"));
}

QString mySwitchBottonPlugin::toolTip() const
{
    return QLatin1String("");
}

QString mySwitchBottonPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool mySwitchBottonPlugin::isContainer() const
{
    return false;
}

QString mySwitchBottonPlugin::domXml() const
{
    return QLatin1String("<widget class=\"mySwitchBotton\" name=\"mySwitchBotton\">\n</widget>\n");
}

QString mySwitchBottonPlugin::includeFile() const
{
    return QLatin1String("myswitchbotton.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(myswitchbottonplugin, mySwitchBottonPlugin)
#endif // QT_VERSION < 0x050000
